home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / lib / tclX-6.4 / help / lists / lappend < prev    next >
Encoding:
Text File  |  1992-12-17  |  784 b   |  13 lines

  1.           lappend varName value ?value value ...?
  2.                Treat the variable given  by  varName  as  a  list  and
  3.                append  each  of  the value arguments to that list as a
  4.                separate element, with  spaces  between  elements.   If
  5.                varName  doesn't  exist,  it  is created as a list with
  6.                elements given by  the  value  arguments.   Lappend  is
  7.                similar  to  append except that the values are appended
  8.                as list elements rather than raw  text.   This  command
  9.                provides  a  relatively efficient way to build up large
  10.                lists.  For example, ``lappend  a  $b''  is  much  more
  11.                efficient  than ``set a [concat $a [list $b]]'' when $a
  12.                is long.
  13.